/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.joseph.validation.concrete;

import com.joseph.validation.interfaces.Booleans;

/**
 *
 * @author Bradley Joseph(210016299)
 */
public class BooleansImp implements Booleans {
    
    
    @Override
    public boolean checkTruth()
    {
        String name = "Bradley";
        //Scanner input = new Scanner(System.in);
        //System.out.println("Enter name: ");
        //if(input.next().equals("Brad"))
        if(name.equals("Bradley"))
        {
            return true;
        }
        else {
            return false;
        }
    }
    
    @Override
    public boolean checkFalsity()
    {
        String name = "Something";
        //Scanner input = new Scanner(System.in);
        //System.out.println("Enter name: ");
        //if(input.next().equals("Brad"))
        if(name.equalsIgnoreCase(""))
        {
            return true;
        }
        else {
            return false;
        }
    }
}
